package com.ruoyi.teaching.es;


import lombok.Builder;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.DateFormat;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.util.Date;

/**
 * @Version 1.0.0
 * @Description TODO
 * @Author sunshine
 * @Date 2024/01/29
 */
@Data
@Builder
@Document(indexName = "curriculum_dy")
public class TeachingPlanStudent {
    /** 面试题ID */

    @Id
    private Long id;

    /** 阶段 */

    @Field(type = FieldType.Keyword)
    private String className;

    /** 面试题内容 */

    @Field(type = FieldType.Keyword)
    private Integer stage;

    @Field(type = FieldType.Keyword)
    private Long day;

    @Field(type = FieldType.Date,format = DateFormat.date_time)
    private String date;
    @Field(type = FieldType.Keyword,index = false)
    private Integer weekday;
    //    搜索条件
    @Field(type = FieldType.Text,analyzer = "ik_max_word")
    private String courseContent;
}
